<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::WebSocketControllerBase类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="classdrogon_1_1WebSocketControllerBase.html">WebSocketControllerBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classdrogon_1_1WebSocketControllerBase-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::WebSocketControllerBase类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>The abstract base class for WebSocket controllers.  
 <a href="classdrogon_1_1WebSocketControllerBase.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="WebSocketController_8h_source.html">WebSocketController.h</a>&gt;</code></p>
<div class="dynheader">
类 drogon::WebSocketControllerBase 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classdrogon_1_1WebSocketControllerBase__inherit__graph.png" border="0" usemap="#adrogon_1_1WebSocketControllerBase_inherit__map" alt="Inheritance graph"/></div>
<map name="adrogon_1_1WebSocketControllerBase_inherit__map" id="adrogon_1_1WebSocketControllerBase_inherit__map">
<area shape="rect" title="The abstract base class for WebSocket controllers." alt="" coords="5,79,248,104"/>
<area shape="rect" href="classdrogon_1_1WebSocketController.html" title="The reflection base class template for WebSocket controllers" alt="" coords="21,152,232,192"/>
<area shape="poly" title=" " alt="" coords="129,118,129,152,124,152,124,118"/>
<area shape="rect" href="classdrogon_1_1DrObjectBase.html" title="The base class for all drogon reflection classes." alt="" coords="45,5,209,31"/>
<area shape="poly" title=" " alt="" coords="129,44,129,79,124,79,124,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
drogon::WebSocketControllerBase 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="classdrogon_1_1WebSocketControllerBase__coll__graph.png" border="0" usemap="#adrogon_1_1WebSocketControllerBase_coll__map" alt="Collaboration graph"/></div>
<map name="adrogon_1_1WebSocketControllerBase_coll__map" id="adrogon_1_1WebSocketControllerBase_coll__map">
<area shape="rect" title="The abstract base class for WebSocket controllers." alt="" coords="5,79,248,104"/>
<area shape="rect" href="classdrogon_1_1DrObjectBase.html" title="The base class for all drogon reflection classes." alt="" coords="45,5,209,31"/>
<area shape="poly" title=" " alt="" coords="129,44,129,79,124,79,124,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:abd626fa824d05bc8d2bf95c0e5de96e9" id="r_abd626fa824d05bc8d2bf95c0e5de96e9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1WebSocketControllerBase.html#abd626fa824d05bc8d2bf95c0e5de96e9">handleNewMessage</a> (const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;, std::string &amp;&amp;, const <a class="el" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">WebSocketMessageType</a> &amp;)=0</td></tr>
<tr class="separator:abd626fa824d05bc8d2bf95c0e5de96e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf8957fafe781b6be16cd2ac9196d4b" id="r_a5bf8957fafe781b6be16cd2ac9196d4b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1WebSocketControllerBase.html#a5bf8957fafe781b6be16cd2ac9196d4b">handleNewConnection</a> (const <a class="el" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;, const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;)=0</td></tr>
<tr class="separator:a5bf8957fafe781b6be16cd2ac9196d4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2b7718c0a5aed3f3513bfe948798ad4" id="r_af2b7718c0a5aed3f3513bfe948798ad4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1WebSocketControllerBase.html#af2b7718c0a5aed3f3513bfe948798ad4">handleConnectionClosed</a> (const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;)=0</td></tr>
<tr class="separator:af2b7718c0a5aed3f3513bfe948798ad4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab14ee0d50a5d2a03a1a6ea5db3cfbc2a" id="r_ab14ee0d50a5d2a03a1a6ea5db3cfbc2a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1WebSocketControllerBase.html#ab14ee0d50a5d2a03a1a6ea5db3cfbc2a">~WebSocketControllerBase</a> ()</td></tr>
<tr class="separator:ab14ee0d50a5d2a03a1a6ea5db3cfbc2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classdrogon_1_1DrObjectBase"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classdrogon_1_1DrObjectBase')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classdrogon_1_1DrObjectBase.html">drogon::DrObjectBase</a></td></tr>
<tr class="memitem:a3b6f9f93fce1cb61c43bebea00b77582 inherit pub_methods_classdrogon_1_1DrObjectBase" id="r_a3b6f9f93fce1cb61c43bebea00b77582"><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObjectBase.html#a3b6f9f93fce1cb61c43bebea00b77582">className</a> () const</td></tr>
<tr class="memdesc:a3b6f9f93fce1cb61c43bebea00b77582 inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the class name  <br /></td></tr>
<tr class="separator:a3b6f9f93fce1cb61c43bebea00b77582 inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a847a57ab1e5cac6e70a910ae5e3f759b inherit pub_methods_classdrogon_1_1DrObjectBase" id="r_a847a57ab1e5cac6e70a910ae5e3f759b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObjectBase.html#a847a57ab1e5cac6e70a910ae5e3f759b">isClass</a> (const std::string &amp;class_name) const</td></tr>
<tr class="memdesc:a847a57ab1e5cac6e70a910ae5e3f759b inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the class name is 'class_name'  <br /></td></tr>
<tr class="separator:a847a57ab1e5cac6e70a910ae5e3f759b inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a57e74527aea2d71d9f471b39c70d1b inherit pub_methods_classdrogon_1_1DrObjectBase" id="r_a3a57e74527aea2d71d9f471b39c70d1b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObjectBase.html#a3a57e74527aea2d71d9f471b39c70d1b">~DrObjectBase</a> ()</td></tr>
<tr class="separator:a3a57e74527aea2d71d9f471b39c70d1b inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>The abstract base class for WebSocket controllers. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab14ee0d50a5d2a03a1a6ea5db3cfbc2a" name="ab14ee0d50a5d2a03a1a6ea5db3cfbc2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab14ee0d50a5d2a03a1a6ea5db3cfbc2a">&#9670;&#160;</a></span>~WebSocketControllerBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual drogon::WebSocketControllerBase::~WebSocketControllerBase </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af2b7718c0a5aed3f3513bfe948798ad4" name="af2b7718c0a5aed3f3513bfe948798ad4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2b7718c0a5aed3f3513bfe948798ad4">&#9670;&#160;</a></span>handleConnectionClosed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void drogon::WebSocketControllerBase::handleConnectionClosed </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5bf8957fafe781b6be16cd2ac9196d4b" name="a5bf8957fafe781b6be16cd2ac9196d4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bf8957fafe781b6be16cd2ac9196d4b">&#9670;&#160;</a></span>handleNewConnection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void drogon::WebSocketControllerBase::handleNewConnection </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacedrogon.html#a5200699555f98a809538342baa167aad">HttpRequestPtr</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abd626fa824d05bc8d2bf95c0e5de96e9" name="abd626fa824d05bc8d2bf95c0e5de96e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd626fa824d05bc8d2bf95c0e5de96e9">&#9670;&#160;</a></span>handleNewMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void drogon::WebSocketControllerBase::handleNewMessage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacedrogon.html#a963450dc03553ccb1c4bbc8479404eb9">WebSocketConnectionPtr</a> &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacedrogon.html#a60c960a4500d47d200b72356dfcd06e8">WebSocketMessageType</a> &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="WebSocketController_8h_source.html">WebSocketController.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
